package com.tuanzi.loan.web.bean.statistics;

import com.base.common.log.LogService;
import com.google.common.collect.Lists;
import com.tuanzi.loan.business.constants.DictionaryCode;
import com.tuanzi.loan.core.aspect.Debug;
import com.tuanzi.loan.vo.request.statistics.AppRegistNumStatsearchRequest;
import com.tuanzi.loan.vo.response.statistics.AppRegistNumStatsearchResponse;
import com.tuanzi.loan.web.configuration.JSFListingBean;
import com.tuanzi.loan.web.lazy.statistics.AppRegistNumStatLazyModel;
import com.tuanzi.server.loan_base.util.DateUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.faces.bean.ViewScoped;
import java.text.ParseException;
import java.util.List;

/**
* @Description:    大产品APP注册、登录统计
* @Author:         xionghao
* @CreateDate:     2019/1/18 20:13
*/
@Debug
@Data
@Component
@ViewScoped
@EqualsAndHashCode(callSuper = true)
public class AppRegistNumStatBean extends JSFListingBean<AppRegistNumStatsearchRequest, AppRegistNumStatsearchResponse>{

    @PostConstruct
    public void init(){
        initLazyModel();
    }

    private void initLazyModel(){
        $ = new  AppRegistNumStatsearchRequest();
        lazyDataModel = new AppRegistNumStatLazyModel($);
    }

    @Override
    protected List<String> getDictionaryCodes() {
            return Lists.newArrayList(DictionaryCode.PARENT_PRODUCT);
    }
}
